package com.hanscan.ws;

import java.util.Calendar;
import java.util.SimpleTimeZone;
import java.util.TimeZone;
import javax.jws.WebMethod;
import javax.jws.WebService;

@WebService()
public class Comunication
{

    @WebMethod(operationName = "getTime")
    public Calendar getTime()
    {
        TimeZone timeZone = new SimpleTimeZone(0, "GMT");
        Calendar calendar = Calendar.getInstance(timeZone);
        return calendar;
    }
    
}
